package echat.future.cn.echat.my.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import echat.future.cn.echat.R;
import echat.future.cn.echat.my.bean.MeJumpBean;

public class MeJumpAdapter extends BaseQuickAdapter<MeJumpBean,BaseViewHolder> {
    public MeJumpAdapter(@Nullable List<MeJumpBean> data) {
        super(R.layout.item_me_jump,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MeJumpBean item) {
        helper.setImageResource(R.id.left_icon,item.getLeftIconId())
                .setText(R.id.title,item.getTitle())
        .setGone(R.id.right_icon,!item.isHiddenRigthIcon());
    }
}
